home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / games / drh30.zip / KOPIER.BAT < prev    next >
DOS Batch File  |  1996-01-07  |  6KB  |  183 lines

  1. @echo off
  2. cls
  3. echo  ************************* DR.HARDWARE SYSINFO **************************
  4. echo                                                                           
  5. echo                        Installation auf Festplatte                       
  6. echo                                                                           
  7. echo                                                                           
  8. echo    Bitte drücken Sie eine beliebige Taste, wenn Sie DR. HARDWARE         
  9. if "%1" == ""  goto INSTFIRSTHD
  10. if "%1" == "c:" goto INST
  11. if "%1" == "d:" goto INST
  12. if "%1" == "e:" goto INST
  13. if "%1" == "f:" goto INST
  14. if "%1" == "g:" goto INST
  15. if "%1" == "h:" goto INST
  16. if "%1" == "i:" goto INST
  17. if "%1" == "j:" goto INST
  18. if "%1" == "k:" goto INST
  19. if "%1" == "l:" goto INST
  20. if "%1" == "m:" goto INST
  21. if "%1" == "n:" goto INST
  22. if "%1" == "o:" goto INST
  23. if "%1" == "p:" goto INST
  24. if "%1" == "q:" goto INST
  25. if "%1" == "r:" goto INST
  26. if "%1" == "s:" goto INST
  27. if "%1" == "t:" goto INST
  28. if "%1" == "u:" goto INST
  29. if "%1" == "v:" goto INST
  30. if "%1" == "w:" goto INST
  31. if "%1" == "x:" goto INST
  32. if "%1" == "y:" goto INST
  33. if "%1" == "z:" goto INST
  34. goto INSTFIRSTHD
  35.  
  36. :INSTFIRSTHD
  37. echo    im Verzeichnis \DRHARD auf der Festplatte C:\ installieren wollen.    
  38. echo                                                                            
  39. echo      HINWEIS:                                                              
  40. echo      Durch Aufrufen dieser Kopierroutine mit zusätzlichen Parametern        
  41. echo      können Sie Laufwerk und Verzeichnisname selbst festlegen.             
  42. echo      Syntax :   KOPIER X: Verzeichnisname                                  
  43. echo      Beispiele:  
  44. echo      [KOPIER D: TEST] Kopiert Programm in das Verzeichnis "TEST" auf D:\   
  45. echo      [KOPIER E:]      Kopiert Programm in das Vorgabeverzeichnis \DRHARD
  46. echo                       auf E:\  
  47. goto LETSGO
  48.  
  49. :INST
  50. if "%2" == "" goto NODIR
  51. echo    im Verzeichnis \%2 auf der Festplatte %1 installieren wollen.         
  52. goto LETSGO
  53.  
  54. :NODIR
  55. echo    im Verzeichnis \DRHARD auf der Festplatte %1 installieren wollen.     
  56. goto LETSGO
  57.  
  58. :LETSGO
  59. echo                                                                           
  60. echo    Mit STRG+C bzw. CTRL+C können Sie den Kopiervorgang jetzt abbrechen.  
  61. echo                                                                           
  62. echo  ************************************************************************
  63. PAUSE >NUL
  64. cls
  65. if "%1" == "" goto INSTTOC
  66. if "%2" == "" goto INSTSTDDIR
  67. md %1\%2
  68. if not exist %1\%2\drhard.exe goto LETSCOPY
  69. cls
  70. echo !!ACHTUNG!! 
  71. echo Es existiert im Zielverzeichnis bereits eine Datei mit dem
  72. echo Namen DRHARD.EXE. Beachten Sie, daß ggf. vorhandene ältere
  73. echo Programmdateien nun überschrieben werden.
  74. echo Abbruch mit STRG+C bzw. CTRL+C.
  75. pause >nul
  76. goto LETSCOPY
  77.  
  78. :LETSCOPY
  79. rem if errorlevel 4 goto ERRMESSAGE
  80. rem if errorlevel 1 goto ERRMESSAGE
  81. echo Kopieren...
  82. copy drhard.*  %1\%2        >nul
  83. copy *.txt %1\%2         >nul
  84. copy file_id.diz %1\%2        >nul
  85. copy bestell.fml %1\%2        >nul
  86. copy gratis.upd %1\%2  >nul
  87. copy benchvgl.dat %1\%2 >nul
  88. copy kunde.dat %1\%2 >nul
  89. copy liesmich.bat %1\%2     >nul
  90. goto ENDMESSAGE
  91.  
  92. :INSTSTDDIR
  93. md %1\DRHARD             >nul
  94. if not exist %1\drhard\drhard.exe goto CPYSTDDIR
  95. cls
  96. echo !!ACHTUNG!! 
  97. echo Es existiert im Zielverzeichnis bereits eine Datei mit dem
  98. echo Namen DRHARD.EXE. Beachten Sie, daß ggf. vorhandene ältere
  99. echo Programmdateien nun überschrieben werden.
  100. echo Abbruch mit STRG+C bzw. CTRL+C.
  101. pause >nul
  102. goto CPYSTDDIR
  103.  
  104. :CPYSTDDIR
  105. rem if errorlevel 4 goto ERRMESSAGE
  106. rem if errorlevel 1 goto ERRMESSAGE
  107. echo Kopieren...
  108. copy drhard.*  %1\DRHARD    >nul
  109. copy *.txt %1\drhard         >nul
  110. copy file_id.diz %1\drhard    >nul
  111. copy bestell.fml %1\drhard    >nul
  112. copy gratis.upd %1\drhard >nul
  113. copy benchvgl.dat %1\drhard >nul
  114. copy kunde.dat %1\drhard >nul
  115. copy liesmich.bat %1\drhard    >nul
  116. goto ENDMESSAGE
  117.  
  118. :INSTTOC
  119. md c:\drhard
  120. if not exist c:\drhard\drhard.exe goto CPYTOC
  121. cls
  122. echo !!ACHTUNG!! 
  123. echo Es existiert im Zielverzeichnis bereits eine Datei mit dem
  124. echo Namen DRHARD.EXE. Beachten Sie, daß ggf. vorhandene ältere
  125. echo Programmdateien nun überschrieben werden.
  126. echo Abbruch mit STRG+C bzw. CTRL+C.
  127. pause >nul
  128. goto CPYTOC
  129.  
  130. :CPYTOC
  131. echo Kopieren ...
  132. copy drhard.* c:\drhard >nul
  133. copy *.txt c:\drhard         >nul
  134. copy file_id.diz c:\drhard     >nul
  135. copy bestell.fml c:\drhard     >nul
  136. copy gratis.upd c:\drhard >nul
  137. copy benchvgl.dat c:\drhard >nul
  138. copy kunde.dat c:\drhard >nul
  139. copy liesmich.bat c:\drhard      >nul
  140. goto ENDMESSAGE
  141.  
  142. :ERRMESSAGE
  143. cls
  144. echo  **************************************
  145. echo    Fehlerhafte Laufwerkseingabe !!!    
  146. echo    Beliebige Taste...                  
  147. echo  **************************************
  148. goto END
  149.  
  150. :ENDMESSAGE
  151. echo  
  152. echo  ********************************************************
  153. echo     Der Kopiervorgang ist beendet!                       
  154. echo   
  155. echo     Starten Sie Dr.Hardware Sysinfo künftig, indem Sie      
  156. echo     zunächst in das Programmverzeichnis auf dem Laufwerk   
  157. if "%1"=="" goto STARTSTD
  158. if "%2"=="" goto STARTDRV
  159. goto STARTDIRDRV
  160.  
  161. :STARTSTD
  162. echo     C:\ wechseln. Geben Sie dazu ein: [cd drhard]
  163. goto STARTEXE
  164.  
  165. :STARTDRV
  166. echo     %1\ wechseln. Geben Sie dazu ein: [cd drhard]
  167. goto STARTEXE
  168.  
  169. :STARTDIRDRV
  170. echo     %1\ wechseln. Geben Sie dazu ein: [cd %2]
  171. goto STARTEXE
  172.  
  173. :STARTEXE
  174. echo     ...und danach die Programmdatei laden...             
  175. echo     Geben Sie dazu ein: [drhard]                         
  176. echo      
  177. echo     Beliebige Taste...
  178. echo  ********************************************************
  179. goto END
  180.  
  181. :END
  182. pause >nul
  183. echo on